<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp" %>
<%@ include file="/common/grid/jqGrid.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>选择员工</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="选择员工">
	<meta http-equiv="description" content="This is my page">

  </head>
  
  <body>
    <center>
    	<s:form name="frm" id="frm" method="post" action="" namespace="">
    	
    		<jsp:include page="/jsp/outward/business/common/menuLink.jsp">
    			<jsp:param name="menuLink" value="[{'name':'选择员工'}]"/>
    			<jsp:param name="width" value="40%"/>
    		</jsp:include>
    		
    		<table cellspacing="0" width="100%">
				<tr>
					<td align="left">
						<input type="button" value="查询" class="btn" onclick="searchThis()"/>
						<input type="button" value="重置" class="btn" onclick="resetSearch()"/>
					</td>
				</tr>
			</table>
    		
    		<table width="100%" cellspacing="1" cellpadding="3" bgcolor="#CCCCCC">
    			<tr bgcolor="#FFFFFF">
    				<td width="10%" align="right" class="label">
    					员工编号：
    				</td>
    				<td width="23%" align="left">
    					<s:textfield id="employeeNum" name="employeeNum" cssStyle="width:98%" cssClass="search pass"></s:textfield>
    				</td>
    				<td width="10%" align="right" class="label">
    					员工姓名：
    				</td>
    				<td width="23%" align="left">
    					<s:textfield id="employeeName" name="employeeName" cssStyle="width:98%" cssClass="search pass"></s:textfield>
    				</td>
    			</tr>
    		</table>
    		
    		<table id="listGrid" cellpadding="3" cellspacing="0"></table>
			<div id="pager" style="text-align:center;"></div>
    	</s:form>
    </center>
    
    <script type="text/javascript">
	$(function(){
		loadGridData('listGrid', 'pager', 'frm');
	});
    
    function searchThis()
    {
    	toSearchList('listGrid', 'frm');
    }

    function selectObj(id, num, name)
    {
        var employee = {'id':id, 'employeeNum':num, 'employeeName':name};
        setReturnValue(employee);
        window.close();
    }
    </script>
    
  </body>
</html>
